#ifndef ConfigReader_h
#define ConfigReader_h

#include <iostream>
#include <fstream>
#include <iomanip>

extern "C" {
#include <sys/types.h>
#include <string.h>
#include <getopt.h> 
}

#include "IOError.h"

using namespace std;

class ConfigReader
{
 public:
  static const int farg_size=1024; //max number of arguments allowed in file
  int fargc;
  char *fargv[farg_size];
  char *cfg_filename;

  ConfigReader();
  void getConfigFileName(int *argc,char **argv) throw(IOError);
  void readConfigFile() throw(IOError);
};
#endif
